package Day14;

import java.io.*;
import java.net.SocketTimeoutException;

public class Text2 {
    public static void main(String[] args) throws IOException {
       FileInputStream file = new FileInputStream("Day_01/a.txt");
      /* byte[] byte1 = new byte[2];
       int len = file.read(byte1);
        System.out.println(len);
        System.out.println(new String(byte1,0,len));

        int len1 = file.read(byte1);
        System.out.println(len1);
        System.out.println(new String(byte1,0,len1));


        int len2 = file.read(byte1);
        System.out.println(len2);
        System.out.println(new String(byte1,0,len2));
        */
      /*  FileOutputStream fos = new FileOutputStream("Day_01/a.txt");
        int len;
        byte[] byte2 = new byte[1024*1024*5];
        while((len = file.read(byte2)) != -1){
            fos.write(byte2);
        }
        fos.close();
        file.close();
*/
/*
        FileReader fis = new FileReader("Day_01/a.txt");
        int ch;
        while((ch = fis.read()) != -1){
            System.out.print((char)ch);
        }
        fis.close();
*/

/*
        FileWriter fos = new FileWriter("Day_01/a.txt",true);
        char[] chars = {'q','e','t','我'};
        fos.write(chars);
        fos.write("hhh");
        fos.close();*/


    }
}
